import ELBuilder from '../model/builder.js';

let currentModel = null;

export const setModel = (model) => {
  currentModel = model;
};

export const getModel = () => currentModel;

export const buildModel = (payload) => {
  const model = ELBuilder.build(payload);
  setModel(model);
  return model;
};

